<template>
  <div id='tmpl'>
        <div class="infos">
            <h3 v-text="info.title"></h3>
            <p class="line"></p>
            <p v-html="info.content" id='xin'></p>
         
        </div>
  </div>
</template>
<script>
import common from '../../kikt/comment.js';
import { Toast } from 'mint-ui';
export default {
  data () {
    return {
        id:0,
        info:{}
    };
  },
  created(){
      this.id = this.$route.params.id;
      this.getinfosx();
  },
  methods:{
      getinfosx:function(){
           var url = common.apidomain + '/api/goods/getdesc/'+this.id;
          this.$http.get(url).then(function(res){
                if(res.body.status != 0){
                    Toast(res.body.message);
                    return;
                }
                this.info = res.body.message[0];
          })
      }
  }
}
</script>
<style lang="css" scoped>
    .infos {
        padding: 5px;
    }
    .infos h3 {
        color: #007ACC;
          padding: 5px;
    }
     .line {
        width: 100%;
        height: 1px;
        border-bottom: 1px solid #ccc;
    }
   
</style>